﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FashionStoreMVC.Models
{
    public class PagingModel
    {
        public int Total = 0;
        public int NumbersPerPage = 10;
        private string _pagingTemplate = "";

        public string PagingTemplate
        {
            get { return _pagingTemplate; }
            set { _pagingTemplate = value.Replace("%7B0%7D", "{0}"); }
        }

        public int PageTotal
        {
            get { return FFormHelper.calculatePageTotal(Total, NumbersPerPage); }
        }
    }
}